package com.sch.wanandroid.test

import android.os.Bundle
import android.util.Log
import android.view.KeyEvent
import android.view.Menu
import android.view.MenuItem
import com.sch.wanandroid.R
import com.sch.wanandroid.base.BaseActivity
import kotlinx.android.synthetic.main.activity_test.*

/**
 * Created by Sch.
 * Date: 2020/5/6
 * description:
 */
class TestActivity : BaseActivity() {
    override fun getLayoutId(): Int {
        return R.layout.activity_test
    }

    override fun init(savedInstanceState: Bundle?) {
        toolbar.run {
            setSupportActionBar(this)
        }
    }

    override fun onCreateOptionsMenu(menu: Menu?): Boolean {
        menuInflater.inflate(R.menu.test_menu, menu)
        return super.onCreateOptionsMenu(menu)
    }

    override fun onOptionsItemSelected(item: MenuItem): Boolean {
        return super.onOptionsItemSelected(item)
    }
}